package com.maikang.exammall.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Set;


@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class CartDetailDTO {

    private Long id;

    private Long refererId;
    private Long userId;

    private Long pkgId;
    private Long pkgCount;
    private Long pkgPrice;
    private Long pkgPriceOriginal;
    private Integer pkgTarget;
    @ApiModelProperty("套餐头像url")
    private String avatarUrl;
    private String hospitalAvatarUrl;
    private String pkgName;

    private Long hospitalId;
    private String hospitalName;
    private Set<Integer> openDates;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastModifiedDate;
}
